package com.study.security.core.validate.code.generator;

import com.study.security.core.validate.code.entity.ValidateCode;
import org.springframework.web.context.request.ServletWebRequest;


/**
 * @author liyongkui
 */
public interface ValidateCodeGenerator {

    /**
     * 生成图片验证码
     *
     * @param request 请求
     * @throws Exception 异常
     */
    ValidateCode generate(ServletWebRequest request) throws Exception;
}
